package org.itcast.annotationandresttemplate.swaggerTest.mapper;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.itcast.annotationandresttemplate.swaggerTest.entity.SwaggerDTO;

import java.util.List;

@Mapper
public interface SwaggerMapper {
    int save(SwaggerDTO swaggerDTO);

    List<SwaggerDTO> find(SwaggerDTO swaggerDTO);

    Page<SwaggerDTO> findByPage(SwaggerDTO swaggerDTO);

    SwaggerDTO getById(int swaggerId);

    int deleteById(int swaggerId);
}
